﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using WCFMINERP.MODEL.Order;

namespace WCFMINERP.Order.Forms
{
    public partial class ProductCateGoryConctrol : UserControl
    {
        public ProductCateGoryConctrol()
        {
            InitializeComponent();
        }

        public string ProductGateGoryName
        {
            get { return lbProductCategory.Text.Trim(); }
            set 
            {
                lbProductCategory.Text = value;
            }
        }
        public List<ProductInfo> ProductList { get; set; }

        public delegate void ControlClickHander(ProductCateGoryConctrol pcgControl);
        public event ControlClickHander ControlClick;

        private void Control_Click(object sender, EventArgs e)
        {
            ControlClick(this);
        }

        private void lbProductCategory_Click(object sender, EventArgs e)
        {
            ControlClick(this);
        }

        private void label1_Click(object sender, EventArgs e)
        {
            ControlClick(this);
        }

    }
}
